﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace StatelyCompiler
{
    public static class FileInfoExtensions
    {
        /// <summary>
        /// Returns the name of the file without directory or extension included
        /// </summary>
        /// <returns></returns>
        public static string GetBaseFileName(this FileInfo me) 
        {
            return me.Name.Left(me.Name.Length - me.Extension.Length);
        }
    }
}
